package cn.stylefeng.guns.modular.transport.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.transport.entity.MapDisptch;
import cn.stylefeng.guns.modular.transport.entity.MapDisptchMongo;
import cn.stylefeng.guns.modular.transport.entity.MapDisptchNew;
import cn.stylefeng.guns.modular.transport.model.params.MapDisptchParam;
import cn.stylefeng.guns.modular.transport.model.result.MapDisptchResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wp
 * @since 2025-04-14
 */
public interface MapDisptchService extends IService<MapDisptch> {

    /**
     * 新增
     *
     * @author wp
     * @Date 2025-04-14
     */
    void add(MapDisptchParam param);
    void insert(MapDisptch mapDisptch);

    /**
     * 删除
     *
     * @author wp
     * @Date 2025-04-14
     */
    void delete(MapDisptchParam param);

    /**
     * 更新
     *
     * @author wp
     * @Date 2025-04-14
     */
    void update(MapDisptchParam param);

    void updateMapDisptchById(MapDisptch mapDisptch);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wp
     * @Date 2025-04-14
     */
    MapDisptchResult findBySpec(MapDisptchParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wp
     * @Date 2025-04-14
     */
    List<MapDisptchResult> findListBySpec(MapDisptchParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wp
     * @Date 2025-04-14
     */
     LayuiPageInfo findPageBySpec(MapDisptchParam param,String condition);

    List<MapDisptchNew> getMapDisptch(String dispatchNumber, String operateId);

    List<MapDisptchMongo> getMapDisptchMongo(String dispatchNumber, String operateId);

    List<MapDisptchMongo> getMapDisptchMongoOnWay(String operateId);
}
